package com.example.movie.mate.service;

import com.example.movie.mate.pojo.core.Principle;
import com.example.movie.mate.pojo.param.BookingAddNewParam;
import com.example.movie.mate.pojo.vo.BookingFullInfoVO;
import com.example.movie.mate.pojo.vo.BookingSimpleInfoVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IBookingService {

    void addNew(BookingAddNewParam param, Principle principle);

    BookingFullInfoVO selectFullInfoByIdAndUser(Long id, Principle principle);

    List<BookingSimpleInfoVO> selectSimpleInfoByUser(Principle principle);

}